package com.example.user.controller;


import com.example.common.dto.base.ResultMsg;
import com.example.user.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 用户服务
 *
 * @author huangjie
 */
@Api(tags = "用户服务")
@Slf4j
@RestController
@RequestMapping(value = "/user", method = RequestMethod.POST)
public class UserController {
    @Autowired
    private UserService userServic;

    @ApiOperation("测试用户接口")
    @RequestMapping(value = "/testUser")
    public ResultMsg<Void> testUser() {
        userServic.testUser();
        return ResultMsg.generateSuccessResults("操作成功");
    }

}
